package com.xiaomazi.cms.controller;

import com.xiaomazi.cms.service.BannerService;
import com.xiaomazi.common.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: llxy-parent
 * @description: 轮播图控制器
 * @author: 小马子
 * @create: 2023-02-23 10:34
 **/
@RestController
@RequestMapping("/educms/bannerfront")
public class BannerFrontController {

    @Autowired
    private BannerService bannerService;

    @GetMapping("/getAllBanner")
    public R getAllBanner(){
        return bannerService.getAllBanner();
    }
}
